{% extends "layout.html" %}
{% block head %}
<style>
    .graphs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        @media screen and (max-width: 768px) {
            grid-template-columns: 1fr;
        }
    }
</style>
{% endblock %}
{% block content %}
<details style="margin-top: 10px;">
    <summary>What data is in the dashboard?</summary>

    The dashboard shows performance results for all stable Rust releases going back to
    <code>1.28.0</code>, along with the latest <code>beta</code> release. The displayed
    duration is an arithmetic mean amongst all
    <a href="https://github.com/rust-lang/rustc-perf/tree/master/collector/compile-benchmarks#stable">stable</a>
    benchmarks. The dashboard also shows the average duration of runtime benchmarks, which measure the performance of
    Rust programs
    compiled by a given version of the Rust compiler.
</details>

<form id="scale-select-form">
    <label>
        <input type="radio" name="scale-select" value="linear" checked />
        Linear-scale
    </label>
    <label>
        <input type="radio" name="scale-select" value="log" />
        Log-scale
    </label>
</form>

<div class="graphs">
    <div id="check-average-times"></div>
    <div id="debug-average-times"></div>
    <div id="opt-average-times"></div>
    <div id="doc-average-times"></div>
    <div id="runtime-average-times"></div>
</div>
<div id="as-of"></div>
{% endblock %}
{% block script %}
<script src="scripts/dashboard.js"></script>
{% endblock %}